package com.qijian.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.business.domain.ReportQualitySummary;
import org.apache.ibatis.annotations.Select;

/**
 * 质量汇总Mapper接口
 *
 * @author qijian
 * @date 2021-12-15
 */
public interface ReportQualitySummaryMapper extends BaseMapper<ReportQualitySummary> {

    @Select("select count(0)+IF(#{isAddOne},1,0) from report_quality_summary WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();
}
